<?xml version="1.0" encoding="UTF-8" ?>
<jsp:root 
	xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:display="http://displaytag.sf.net" 
	version="2.0"
>
    <jsp:directive.page language="java"
        contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" />
<html xmlns="http://www.w3.org/1999/xhtml">
<c:url var="dwrUrl" value="/dwr"/>
<c:set var="baseurl" value="${request.contextPath}"/>
<head>
	<script type="text/javascript" src="${dwrUrl}/interface/TimeManager.js"><!--  --></script>
	<script src='${dwrUrl}/engine.js'><!--  --></script>
	<script type="text/javascript" src="${baseurl}/scripts/projects.js"><!----></script>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
	<meta name="heading" content="All Projects"></meta>
	<title>Project List</title>
</head>
<body>

	<c:set var="buttons">
		<c:url var="url" value="/admin/editProject.html">
			<c:param name="method" value="Add"/>
			<c:param name="from" value="list"/>
		</c:url>
	    <input type="button" style="margin-right: 5px"
	        onclick="location.href='${url}'"
	        value="Add"/>
	    <c:url var="url" value="/mainMenu.html"/>
	    <input type="button" onclick="location.href='${url}'"
	        value="Done"/>
	</c:set>

	<div>
		<c:out value="${buttons}" escapeXml="false"/>
		<display:table
			htmlId="project-table"
			export="false"
			class="table admin-list"
			list="${projects}"
			sort="list"
			defaultsort="2"
		>
			<display:column property="id" title="ID" sortable="true" url="/admin/editProject.html?from=list" paramId="id" paramProperty="id"/>
			<display:column property="name" title="Name" sortable="true"/>
		</display:table>
		<c:out value="${buttons}" escapeXml="false"/>
	</div>
</body>
</html>
</jsp:root>